<?php

namespace app\model;

use think\Model;


//产品浏览记录
class ProductViews extends Model
{
    // Define the table name
    protected $name = 'product_views';
    public $timestamps = false;


    public function getAllProductViewCount($uid){
        $count = $this->where('customer_id',$uid)->count();
        return $count;
    }
}
